using System;

namespace AspnetCrossPlatform
{
	public class Startup
	{
		private IConfiguration Configuration{get;set;}
		public Startup(IHostingEnviroment env)
		{
			Configuration=new Configuration().AddJsonFile("~/Config.json").AddEnviromentVariables();
		
		}
		
		public void ConfigureServices(IServiceCollection services)
		{
			services.AddMvc();
		}
		
		public void Configure(IApplicationBuilder appBuilder)
		{
			appBuilder.UseMvc(routes=>{
				routes.MapRoute(name:"default",template:"{controller=Home}/{action=Index}");
			});
		}
	}
}